package com.dai.spec.gxk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dai.spec.gxk.domain.CourseApplication;

import java.util.List;

/**
 * 课程申请
 */
public interface CourseApplicationService extends IService<CourseApplication> {

    /**
     * 申请课程
     *
     * @param courseApplication
     * @return
     */
    public int saveApplication(CourseApplication courseApplication);

    /**
     * 查询我的课程申请列表
     * @param courseApplication
     * @return
     */
    List<CourseApplication> queryMyApplicationList(CourseApplication courseApplication);

    /**
     * 查询课程申请待审批列表
     *
     * @param courseApplication
     * @return
     */
    List<CourseApplication> queryList(CourseApplication courseApplication);

    /**
     * 课程审批
     *
     * @param courseApplication
     * @return
     */
    public int approvalApplication(CourseApplication courseApplication);
}
